package com.guigu.tms.commons.aggregation.feign;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.aggregation.entity.DriverJob;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "tms-aggregation",path = "/aggregation/driverJob",contextId = "zhh")
public interface DriverJobFeignClient {
    @GetMapping("DriverJobAll")
    PageInfo<DriverJob> DriverJobAll(@RequestParam("id") String id,@RequestParam("name")  String name,@RequestParam("status")  Integer status,@RequestParam("taskTransportId")  String taskTransportId,@RequestParam("num") Integer num,@RequestParam("size") Integer size);

    @PostMapping("createDriverJob")
    boolean createDriverJob(@RequestBody DriverJob driverJob);
}
